#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void f(double a)
{
	if (a > 0)
		printf("1\n");
	else if (a == 0)
		printf("0.5\n");
	else
		printf("0\n");
}
int main(void)
{
	double a;
	while (scanf("%lf", &a) != EOF)
		f(a);
	return 0;
}